SIZE_X = 8
SIZE_Y = 8

class Position(object):
	xMap = ['a','b','c','d','e','f','g','h']
	def __init__(self,x,y):
		self.x = x
		self.y = y
	def getX(self):
		return self.x
	def getY(self):
		return self.y
	def getCopy(self):
		return Position(self.x,self.y)
	def toString(self):
		if self.x<SIZE_X and self.x>-1 and self.y>-1 and self.y<SIZE_Y:
			return self.xMap[self.x]+str(self.y)
		return "x:"+str(self.x)+" y:"+str(self.y)

def getCopyOfPosition(position):
	return Position(position.getX(),position.getY())